package com.elantra.controller;

import com.elantra.base.BaseClass;
import com.elantra.base.SystemManage;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class HomeController  extends BaseClass{
    @RequestMapping("/home")
    public String home(HttpServletRequest request){
        request.setAttribute("user", SystemManage.getInstance().getCurrentUser());
        return "home";
    }
}
